﻿#include "ssWsppBase.h"

namespace StarSeeker
{

StarSeeker::ssWsppBase::ssWsppBase()
:m_ioService(0), m_sessionCount(100), m_threadCount(1), m_timeCheck(false)
{
	m_idAlloter.Init(1, 400000000);
}

ssWsppBase::~ssWsppBase()
{

}

void ssWsppBase::InitParam(u32 sessionCount, u32 threadCount, bool timeCheck)
{
	m_sessionCount = sessionCount;
	m_threadCount = threadCount;
	m_timeCheck = timeCheck;
}

void ssWsppBase::OnSessionMessage(u32 sessionID, const char* ip, u32 msgID, char* data, ssNetMsgHead* head)
{
	if (data)
	{
		delete[] data;
	}
}

void ssWsppBase::OnSessionClose(u32 sessionID)
{

}

void ssWsppBase::OnNewSession(u32 sessionID)
{

}

}
